<template>
  <button @click="add">加加1</button>
</template>

<script setup>
import { defineProps, reactive } from 'vue'


export default {
  setup() {
    function add() {
      console.log(111);
    }
    return { add }
  }

}


</script>

<style scoped>
a {
  color: #42b983;
}
</style>
